﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LuoYi.Admin.Entities;

/// <summary>
/// 参数配置表
/// </summary>
[Table("sys_config")]
public class SysConfig : IEntity
{
    /// <summary>
    /// 参数主键
    /// </summary>
    [Key]
    [Column("config_id", TypeName = "int(5)")]
    public int ConfigId { get; set; }

    /// <summary>
    /// 参数名称
    /// </summary>
    [Column("config_name")]
    [StringLength(100)]
    public string? ConfigName { get; set; }

    /// <summary>
    /// 参数键名
    /// </summary>
    [Column("config_key")]
    [StringLength(100)]
    public string? ConfigKey { get; set; }

    /// <summary>
    /// 参数键值
    /// </summary>
    [Column("config_value")]
    [StringLength(500)]
    public string? ConfigValue { get; set; }

    /// <summary>
    /// 系统内置（Y是 N否）
    /// </summary>
    [Column("config_type")]
    [StringLength(1)]
    public string? ConfigType { get; set; }

    /// <summary>
    /// 创建者
    /// </summary>
    [Column("create_by")]
    [StringLength(64)]
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("create_time", TypeName = "datetime")]
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新者
    /// </summary>
    [Column("update_by")]
    [StringLength(64)]
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("update_time", TypeName = "datetime")]
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [Column("remark")]
    [StringLength(500)]
    public string? Remark { get; set; }
}
